From 2e6927392272b3285d740fb61c8aeb4c6d9fb21a Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 19 Mar 2021 20:50:40 -0400 Subject: [PATCH] ngl: Remove an unused field We are ignoring the debug nodes, so the debug_groups string chunk is unused. --- gsk/ngl/gsknglcommandqueue.c | 4 ---- gsk/ngl/gsknglcommandqueueprivate.h | 3 --- 2 files changed, 7 deletions(-) diff --git a/gsk/ngl/gsknglcommandqueue.c b/gsk/ngl/gsknglcommandqueue.c index bebd315823..0fb56cfc50 100644 --- a/gsk/ngl/gsknglcommandqueue.c +++ b/gsk/ngl/gsknglcommandqueue.c @@ -424,8 +424,6 @@ gsk_ngl_command_queue_init (GskNglCommandQueue *self) gsk_ngl_command_binds_init (&self->batch_binds, 1024); gsk_ngl_command_uniforms_init (&self->batch_uniforms, 2048); - self->debug_groups = g_string_chunk_new (4096); - gsk_ngl_buffer_init (&self->vertices, GL_ARRAY_BUFFER, sizeof (GskNglDrawVertex)); } @@ -1215,8 +1213,6 @@ gsk_ngl_command_queue_end_frame (GskNglCommandQueue *self) } } - g_string_chunk_clear (self->debug_groups); - self->batches.len = 0; self->batch_binds.len = 0; self->batch_uniforms.len = 0; diff --git a/gsk/ngl/gsknglcommandqueueprivate.h b/gsk/ngl/gsknglcommandqueueprivate.h index 9a35326cee..e51d1abb46 100644 --- a/gsk/ngl/gsknglcommandqueueprivate.h +++ b/gsk/ngl/gsknglcommandqueueprivate.h @@ -225,9 +225,6 @@ struct _GskNglCommandQueue */ GskNglCommandUniforms batch_uniforms; - /* String storage for debug groups */ - GStringChunk *debug_groups; - /* Discovered max texture size when loading the command queue so that we * can either scale down or slice textures to fit within this size. Assumed * to be both height and width. -- 2.30.2